using System;
using System.Collections.Generic;
using System.Text;

namespace FireStarter.CodeGeneration
{
    public class FormTemplateLoader : TemplateLoader
    {
        public string GetReadOnlyGridForm(string namespaceName, string boReference, string className)
        {
            string fileName = "";
            string fileContents;
            if (!loadFromFile(fileName, out fileContents))
            {
                fileContents = Templates.Form_ReadOnlyGrid;
            }
            SetNamespaceTag(ref fileContents, namespaceName);
            SetBoReferenceTag(ref fileContents, boReference);
            SetClassNameTag(ref fileContents, className);
            return fileContents;
        }
    }
}
